package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Answer;
import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

public interface IAnswerService {

    PageInfo<Answer> query(Long id, QueryObject qo);

    PageInfo<Answer> queryForList(QueryObject qo);

    void save(Answer answer);

    Answer getById(Long Id);

    int queryForCommentCountById(Long id);

    int getAnswerCountByQuestionId(Long id);

    void delete(Long id);

    void delLike(Long uid, Long aid);

    void addLike(Long uid, Long aid);

    Answer getLikeAnswerById(Long uid, Long aid);

    void delFav(Long uid, Long aid);

    void addFav(Long uid, Long aid);

    Answer getFavAnswerById(Long uid, Long aid);

    void update(Answer answer);

    int getCommentCountByQuestionId(Long id);
}
